package com.zyh.scs.admin.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author hwh
 * @ClassName: 权限dto$
 * @Description: $
 * @Date $
 * @Version 1.0
 */
@Data
@Schema(description = "用户修改新增dto传输对象类")
@Accessors(chain = true)
public class AddAuthorityDTO implements Serializable {


    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Long userId;

    /**
     * guid
     */
    @Schema(description = "guid")
    private String guid;

    /**
     * 主键ID
     */
    @Schema(description = "主键id")
    private Long id;


    @Schema(description = "角色id集合")
    @NotNull(message = "角色不能为空")
    private Long roleId;

    @Schema(description = "状态 0为开启  9为关闭")
    @NotBlank(message = "状态不能为空")
    private String status;

}
